<!DOCTYPE html>
<html>
    <head>
        <title>微店后台管理登录</title>
        <meta charset="utf-8" />
        <meta name="renderer" content="webkit">
        <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" />
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <meta name="format-detection" content="telephone=no">
        <link href="favicon.ico" rel="Shortcut Icon" />
        <link href="static/css/wshop_admin_style.css?v={$cssversion}" type="text/css" rel="Stylesheet" />
        <script type="text/javascript" src="static/script/jquery-2.1.1.min.js?v={$cssversion}"></script>
        <script type="text/javascript" src="static/script/main.js?v={$cssversion}"></script>
        <script type="text/javascript" src="static/script/Wdmin/wdmin.js?v={$cssversion}"></script>
    </head>
    <body class="loginBody">
        <div id="login" class="clearfix">
            <form class="login-form" id="login-frame" action="/pages/login_validate.php" method="POST">
                <img src="{$docroot}static/images/login/profle_1.png" />
                <p> &nbsp; </p>
                <div class='login-item' style='margin-top: 0;padding-top: 14px;'>           
                    <div class="gs-text">
                        <input type="text" tabindex="1" name="username" id="pd-form-username" placeholder="用户名"/>
                    </div>
                </div>
                <div class='login-item'>     
                    <div class="gs-text">
                        <input type="password" tabindex="2" name="password" id="pd-form-password" placeholder="密码" />
                    </div>
                </div>
                <div class='login-item'>  
                    <a class="login-gbtn" href="javascript:;">登录</a>
                </div>
            </form> 
{*            <div id="login-img">
                <img style="display: block;" src="/static/images/login/{$rand}.jpg" height="433px" width="100%" />
            </div>*}
        </div>
        <script type="text/javascript">
            $(function() {
                // 登录按钮点击
                $('.login-gbtn').click(loginCheck);
                // 密码输入框回车
                $('#pd-form-password').keyup(function(e) {
                    if (e.keyCode === 13) {
                        loginCheck();
                    }
                });
                window.onresize = resize;
                function resize() {
                    $('#login').css('margin-top', (document.documentElement.clientHeight - $('#login').height() - 70) / 2);
                }
                resize();
                $('#pd-form-username').focus();
            });
        </script>
    </body>
</html>